﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Views/Shared/Site.Master" Inherits="System.Web.Mvc.ViewPage<t_205_verk_hopur_12.Models.User>" %>

<asp:Content ID="Content1" ContentPlaceHolderID="TitleContent" runat="server">
	Breyta notanda
</asp:Content>

<asp:Content ID="Content3" ContentPlaceHolderID="LogoText" runat="server">
</asp:Content>

<asp:Content ID="Content4" ContentPlaceHolderID="MenuBar" runat="server">
    <% Html.RenderPartial("MenuBar"); %>
</asp:Content>

<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">

    <h2>Breyta upplýsingum um notanda</h2>

    <% using (Html.BeginForm()) {%>
        <%= Html.ValidationSummary(true) %>
        <div class="editor-label">
            Lykilorð
        </div>
        <div class="editor-field">
            <%= Html.TextBoxFor(model => model.Password) %>
            <%= Html.ValidationMessageFor(model => model.Password) %>
        </div>
        <div class="clear"></div>
        
        <div class="editor-label">
            Netfang
        </div>
        <div class="editor-field">
            <%= Html.TextBoxFor(model => model.Email) %>
            <%= Html.ValidationMessageFor(model => model.Email) %>
        </div>
        <div class="clear"></div>
        
        <div class="editor-label">
            Aldur
        </div>
        <div class="editor-field">
            <%= Html.TextBoxFor(model => model.Age) %>
            <%= Html.ValidationMessageFor(model => model.Age) %>
        </div>
        <div class="clear"></div>
        
        <div class="editor-label">
            Kyn
        </div>
        <div class="editor-field">
            <%= Html.RadioButton("Gender", "true", Model.Gender, new Dictionary<string, object> { { "id", "GenderMale" } })%>
            <label for="GenderMale">Karl</label>
            <%= Html.RadioButton("Gender", "false", !Model.Gender, new Dictionary<string, object> { { "id", "GenderFemale" } })%>
            <label for="GenderFemale">Kona</label>
        </div>
        <div class="clear"></div>
        
        <p>
            <input type="submit" value="Vista" />
        </p>
    <% } %>

    <div>
        <%= Html.ActionLink("Til baka", "Index") %>
    </div>

</asp:Content>

